package com.think.teaching.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.think.teaching.model.Chapter;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 章 服务类
 * </p>
 *
 * @author think
 * @since 2020-08-12
 */
@Service
public interface ChapterService extends IService<Chapter> {
	Chapter AddChapter(Chapter chapter);

	Chapter UpdateChapter(Chapter chapter);

	Chapter GetChapter(Integer id);

	List<Chapter> ListChapterSearch(String key ,Boolean withoutBan);

	Chapter SetChapterState(Integer id, Integer state);

	IPage<Chapter> ListChapterWithTagAndType( Integer count, Integer page, Integer type, Integer tag,
			Boolean withoutDelete);
}
